import Vue from 'vue'
import { USER_TOKEN,USER_TOKEN1,USER_INFO } from '@/common/util/constants.js'

const getters = {
	token: state => {state.user.token=uni.getStorageSync(USER_TOKEN); return state.user.token},
	token1: state => {state.user.token1=uni.getStorageSync(USER_TOKEN1); return state.user.token1},
	userinfo: state => {state.user.userinfo=uni.getStorageSync(USER_INFO); return state.user.userinfo},
	update: state => {return state.user.update},
	isLogin: state => {return state.user.isLogin},
	permission: state => {state.user.permission=uni.getStorageSync('SET_PERMISSION'); return state.user.permission},
}
export default getters
